package com.pmcc.platform.shopping.entity;


import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Getter
@Setter
@Entity
@Table(name = "bp_shop_libary")
@org.hibernate.annotations.Table(appliesTo = "bp_shop_libary", comment = "商铺赠品库")
public class ShopLibory extends BaseEntity {

    @Column(columnDefinition = "varchar(100) COMMENT '赠品id'")
    private  String  goodsId;  //赠品id

    @Column(columnDefinition = "(8) COMMENT 'goodsNum'")
    private  int  goodsNum;   //当前赠品数量
//，
    @Column(columnDefinition = "decimal(14,2) COMMENT 'threshold'")
    private BigDecimal threshold;// 赠品门槛

    @Column(columnDefinition = "varchar(32) COMMENT 'shoppingId'")
    private  String  shopId;   //店铺id

    @Column(columnDefinition ="int (8) COMMENT 'totalNum'")
    private  int  totalNum;   //赠品数量

}
